package com.tencent.sr.iris.basic.saas.service.station;

import com.alibaba.fastjson.JSON;
import com.tencent.sr.iris.basic.saas.dependency.station.StationMessageDependency;
import com.tencent.sr.iris.basic.service.interfaces.request.station.StationMessageBasicRequest;
import com.tencent.sr.iris.basic.service.interfaces.request.station.StationMessageDetailRequest;
import com.tencent.sr.iris.basic.service.interfaces.request.station.StationMessagePageRequest;
import com.tencent.sr.iris.basic.service.interfaces.request.station.StationMessageSaveRequest;
import com.tencent.sr.iris.basic.service.interfaces.request.station.StationMessageUpdateRequest;
import com.tencent.sr.iris.basic.service.interfaces.response.station.StationMessageDetailResponse;
import com.tencent.sr.iris.basic.service.interfaces.response.station.StationMessagePageResponse;
import com.tencent.sr.rmall.common.request.PaginationRequest;
import com.tencent.sr.rmall.common.response.PaginationResponse;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class StationMessageService {
    @Resource
    private StationMessageDependency stationMessageDependency;

    public PaginationResponse<StationMessagePageResponse> page(
            PaginationRequest<StationMessagePageRequest> request) {
        log.info("StationMessageService.page调用，入参：{}", JSON.toJSONString(request));
        return stationMessageDependency.page(request);
    }

    public Boolean insert(StationMessageSaveRequest request) {
        log.info("StationMessageService.insert调用，入参：{}", JSON.toJSONString(request));
        return stationMessageDependency.insert(request);
    }

    public StationMessageDetailResponse detail(StationMessageBasicRequest request) {
        log.info("StationMessageService.detail调用，入参：{}", JSON.toJSONString(request));
        return stationMessageDependency.detail(request);
    }

    public Boolean delete(StationMessageBasicRequest request) {
        log.info("StationMessageService.delete调用，入参：{}", JSON.toJSONString(request));
        return stationMessageDependency.delete(request);
    }

    public Boolean publish(StationMessageBasicRequest request) {
        log.info("StationMessageService.publish调用，入参：{}", JSON.toJSONString(request));
        return stationMessageDependency.publish(request);
    }

    public Boolean update(StationMessageUpdateRequest request) {
        log.info("StationMessageService.update调用，入参：{}", JSON.toJSONString(request));
        return stationMessageDependency.update(request);
    }

    public StationMessageDetailResponse detailByMessageId(StationMessageDetailRequest request) {
        log.info("StationMessageService.detailByMessageId调用，入参：{}", JSON.toJSONString(request));
        return stationMessageDependency.detailByMessageId(request);
    }
}
